
function clickMenuItem (url, menuName, menuDesc, menuIcon, itemName) {
    console.log(menuName, menuDesc, menuIcon, itemName);
    $("#iframe")[0].src = url
    if ($(".content-wrapper").length > 0) {
        $(".content-wrapper h1")[0].innerHTML = menuName+"<small>"+menuDesc+"</small>";
        var breadcrumb = "<li><a href=\"#\"><i class=\""+menuIcon+"\"></i> "+menuName+"</a></li>\n";
        if (itemName !== "") {
            breadcrumb += "<li class=\"active\">"+itemName+"</li>\n";
        }
        $(".content-wrapper .breadcrumb")[0].innerHTML = breadcrumb;
    }
}
$(function () {
    // 设置iframe的高度
    var iframeHeight = window.innerHeight - $("#content")[0].offsetTop - 30 - 5;
    if ($(".main-footer")) {
        iframeHeight = iframeHeight - $(".main-footer")[0].clientHeight
    }
    $("#iframe").height(iframeHeight);

})
